{% load table_row_highlight %}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
    <title>
        - Getting tasks done! - 
    </title>
    
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="generator" content="gettingtasksdone@gmail.com" />
    <meta name="keywords" content="time, tracker, your, tasks, done, python, developer, django, get, free, registration, manage, projects, track, time, hours" />
    <meta name="description" content="Be in touch with your tasks. Get your tasks done!" />
    <meta name="revisit" content="3 days" />
    <meta name="robots" content="all" />
    
    <link rel="stylesheet" href="/appmedia/main.css" />
    <link rel="stylesheet" href="/appmedia/links.css" />
    
</head>

<body>

<h1 class="help_header">
Active tasks for {{ user.username }}
</h1>

{% if tasks %}
	<table cellspacing="0" style="width:100%; padding:10px">
		<tr>
			<th>
				Summary
			</th>
			<th>
				Project
			</th>
			<th style="width:70px;">
				Date
			</th>
			<th>
				Time&nbsp;spent
			</th>
		</tr>
		{% for task in tasks %}
		<tr class="{% odd_even_row forloop.counter 'odd' 'even' %}">
			<td nowrap>
				{% if task.done %}
				<img src="/appmedia/yes.gif">
				{% else %}
				<img src="/appmedia/no.gif">
				{% endif %}
				{{task.name}}
			</td>
			<td>
			  	{% if task.project %}
					{{task.project}}
				{% endif %}
			</td>
			<td align="center">
				{% if task.task_date %}
					{{task.task_date}}
				{% endif %}
			</td>
			<td align="right" style="width:100px;padding-right:10px">
				{{task.time_spent|floatformat:1}} h
				{% if task.project %}
					{% if task.project.hour_rate %}
						* ${{task.project.hour_rate}}/h
					{% endif %}
				{% endif %}
			</td>
		</tr>
		{% endfor %}
	</table>
{% endif %}

</body>
</html>